require('../css/logo.less');
// 设置倒计时
document.ready(function(){
    let timeKeeping=document.querySelector('.timeBox span');
    let aKeeping=document.querySelector('.akeeping')
    let num=parseInt(timeKeeping.innerHTML);
    let timeId=setInterval(function(){
        if(num<=1){
            clearInterval(timeId);
            if (localStorage.user) {
                location.href='./home.html'
            }else{
                location.href='./login.html'
            }
       
        };
        num--;
        timeKeeping.innerHTML=num+'s';
    },1000);
    aKeeping.addEventListener('click',function(){
        if (localStorage.user) {
            location.href='./home.html'
        }else{
            location.href='./login.html'
        }
    })

})
